﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Hostal.Bussines.Entities;
using Hostal.Bussines.Logic;
using Hostal.Bussines.Logic.Service;
using Microsoft.Practices.Unity;

namespace Hostal.MVC.Controllers
{
    
    
    public class BoletaController : Controller
    {
        [Dependency]
        public IBoletaService boletaService { get; set; }
        //
        // GET: /Boleta/

        public ActionResult Index()
        {
            var lista = boletaService.getAllBoleta();
            return View(lista);
        }

        public ActionResult Create()
        {
            Boleta newBoleta = new Boleta();
            newBoleta.IdBoleta = 1;
            newBoleta.Fecha = DateTime.Now;
            
            return View();
        }

    }
}
